import { View } from "@tarojs/components";
import React from "react";
import "./index.scss"

const CheckRadio:React.FC<{value: boolean, onChange: (val: boolean) => void}> = ({value, onChange}) => {
    return (
        <View className="select-circle border-main-color flex-column flex-center" onClick={() => onChange(!value)}>
            { value ? <View className="iconfont icon-base-check"></View> : ''}
        </View>
    )
}

export default CheckRadio